package com.ls.uav_backend.service;

import com.alibaba.dashscope.common.Message;
import com.ls.uav_backend.common.PageRequest;
import com.mybatisflex.core.service.IService;
import com.ls.uav_backend.model.entity.ChatHistory;

import java.util.List;
import java.util.Map;

/**
 * 聊天历史记录 服务层。
 *
 * @author <a href="https://gitee.com/Linkating">LinSkating</a>
 */
public interface ChatHistoryService extends IService<ChatHistory> {

    List<Message> loadChatHistory(Integer chatId, int maxCount);

    Map<Integer, List<ChatHistory>> getChatHistoryList();
}
